/*
 * User: gilad
 * Date: 23/06/2008 
 *
 * Copyright (2005) IDI. All rights reserved.
 * This software is a proprietary information of Israeli Direct Insurance.
 * Created by IntelliJ IDEA. 
 */
package com.idi.maven.plugins.servers;

/**
 *
 */
public enum ServerTypeEnum {

    WEB_SERVER("web", "Web Server"),
    EAR_SERVER("jndi", "Jndi Server");

    private String serverType;
    private String displayName;

    ServerTypeEnum(String serverType, String displayName) {
        this.serverType = serverType;
        this.displayName = displayName;
    }

    public String getServerType() {
        return serverType;
    }

    public String getDisplayName() {
        return displayName;
    }

    public static ServerTypeEnum resloveServerType(String serverType) {
        if (WEB_SERVER.serverType.equals(serverType)) {
            return WEB_SERVER;
        }
        return EAR_SERVER;
    }
}